package day03.lianxi.duotai;

public class Lian03 {
    public static void main(String[] args) {
Cat c=new Cat();
c.catchMouse();
Dog d=new Dog();
d.catchMouse();

    }
}
interface CM{
    public abstract void catchMouse();
}
class Cat implements CM{

    @Override
    public void catchMouse() {
        System.out.println("猫捉老鼠");
    }
}
class  Dog implements CM{

    @Override
    public void catchMouse() {
        System.out.println("狗吃肉");
    }
}

